import request from "@/utils/request";

/**
 *  获取处置报告内容
 * @param {*} reportId
 * @returns
 */
export function getHandleReportContent(reportId) {
    return request({
        url: "/hd/report/" + reportId,
        method: "get",
    });
}

/**
 * 保存处置报告
 * @param {*} data
 * @returns
 */
export function saveHandleReport(data) {
    return request({
        url: "/hd/report",
        method: "post",
        data,
    });
}

/**
 *  获取处置报告列表
 * @param {*} query
 * @returns
 */
export function getHandleReportList(query) {
    return request({
        url: "/hd/report/list",
        method: "get",
        params: query,
    });
}

/**
 * 删除处置报告
 * @param {*} reportId
 * @returns
 */
export function delHandleReport(reportId) {
    return request({
        url: "/hd/report/delete/" + reportId,
        method: "delete",
    });
}
